﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace GiteeFirstProject.EntityFramwork.Models
{
    public interface IRepository<T>
    {
        void Create(T entity);

        T Query(Expression<Func<T, bool>> filter);

        IQueryable<T> QueryList(Expression<Func<T, bool>> filter);

        void Update(T entity);

        void Delete(T entity);


    }
}
